import {createApp} from 'vue';
import App from './app.vue';
import {createPinia} from 'pinia';
import router from "./modeules/router.js";
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import {ElButton, ElSelect} from 'element-plus';
import piniapluginpersistedstate from 'pinia-plugin-persistedstate';

const app = createApp(App);
const pinia = createPinia();
pinia.use(piniapluginpersistedstate);
app.use(ElementPlus);
app.use(router);
app.use(pinia);

app.component(ElButton.name, ElButton);
app.component(ElSelect.name, ElSelect);


app.mount('#app');


